package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {
    public int getStudentByMassage(@Param("username") String username, @Param("password") String password);
    public List<Student> getAllStudent(@Param("sname") String sname, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getStudentCounts(@Param("sname") String sname);
    public int addStudent(Student student);
    public int deleteStudent(String sid);
    public int editStudent(Student student);
}
